package cn.gok.springboot.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @ClassName Student
 * @Description TODO
 * @Author HP
 * @Date 10:33 2022/7/14
 * @Version 1.0
 **/
@Component("student")
//注册到Spring容器
@Data
@NoArgsConstructor //无参够着
@AllArgsConstructor //有参
@ConfigurationProperties(prefix="student")
public class Student {
    private int age;
    private String name;
//    private Map<String ,String> map;
//    private int[] arr;
//    private Teacher teacher;
}
